package com.chen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Collection;

/**
 * (Userinfo)实体类
 *
 * @author makejava
 * @since 2024-01-27 09:56:23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "userinfo")
public class UserInfo implements Serializable {
    private static final long serialVersionUID = 244786940436169544L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private String uname;

    private String pwd;

    @TableField(exist = false)
    private Collection<Role>roles;//当前用户具有的角色




}

